// 代理转发
const emailList=["qq.com","163.com","meinx.com"];

function emailProxy(email){
     let str=emailList.join("|");
     let reg=new RegExp("("+str+")$","g");
     console.log(reg)
    if(reg.test(email)){
        // 包含处理
        console.log("不处理",email)
    }else{
        // 不包含处理
        SendEmail.call(this,email)
    }
}

function SendEmail(value){
    console.log("发送邮件",value)
}


emailProxy("zhangwenbangde@163.com")